package com.hxzy.shop.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.entity.OrderInnerDrug;
import com.hxzy.shop.order.dto.resp.CompackNumResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author rlj
 * @Date 2021/8/11 10:16
 * @Version 1.0
 */
@Mapper
public interface OrderInnerDrugMapper extends BaseMapper<OrderInnerDrug> {

    /**
     * 统计用户购买的秒杀商品数量
     * @param drugId
     * @param activityId
     * @return
     */
//    Integer countDrugPayNum(@Param("drugId") Long drugId, @Param("activityId") Long activityId, @Param("memberId") Long memberId);
//
//   List<CompackNumResp> countCompackNum(@Param("id") Long id);
//
//    /**
//     * 获取该用户在该活动中已经购买的药品数量
//     */
//    Integer getBuyNum(@Param("activityId") Long activityId, @Param("memberId") Long memberId);
//
//    Integer getRedeemed(@Param("memberId") Long memberId,@Param("pointRewardId")Long pointRewardId);
}
